﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Exam.infranstuctrue.Dto.other
{
    public class OrganizationDto
    {
        /// <summary>
        /// 组织Id
        /// </summary>
        public string? id { get; set; }
        /// <summary>
        /// 组织名称
        /// </summary>
        public string? name { get; set; }
        /// <summary>
        /// 组织详情
        /// </summary>
        public string? explain { get; set; }
        /// <summary>
        /// 组织等级
        /// </summary>
        public int? lv { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string? createTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? state { get; set; }
        /// <summary>
        /// 备用字段
        /// </summary>
        public string? desc { get; set; }
        /// <summary>
        /// 排序 数字越小就在越上面
        /// </summary>
        public int? no { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string? Icon { get; set; }
        /// <summary>
        /// 该组织拥有的职务
        /// </summary>
        public List<ResponseJobDto>? Jobs { get; set; }
        ///// <summary>
        ///// 该组织拥有的用户
        ///// </summary>
        //public List<ResponseAdminDto>? admins { get; set; }

        /// <summary>
        /// 该组织的负责人
        /// </summary>
        public List<ResponseAdminDto>? principals { get; set; }
        // /// <summary>
        // /// 员工数量
        // /// </summary>
        // public int? AdminCount { get; set; }
        // /// <summary>
        // /// 职务数量
        // /// </summary>
        // public int? JobCount { get; set; }

        ///// <summary>
        ///// 负责人数量
        ///// </summary>
        // public int? principalCount { get; set; }

        /// <summary>
        /// 职务ids
        /// </summary>
        public List<string>? Jids { get; set; }
        /// <summary>
        /// 子级部门
        /// </summary>
        public List<ResponseOrganizationDto>? children { get; set; }
    }
}
